package 依赖倒置原则.classes;

public class ASwitch
{
	public void on(IOnAndOff i)
	{
		i.turnOn();
	}

	public void off(IOnAndOff i)
	{
		i.turnOn();
	}
}
